/**
Date: 2025-08-13
Copyright (c) 2025 CAX Conversion Project
*/
import request from '@/utils/request';
// 源文件信息分页查询
export const sourceFileList = (data) => {
  return request({
    url: '/cax/sourceFile/list',
    method: 'post',
    data
  });
};
// 文件上传
export const sourceFileUpload = (data) => {
  return request({
    url: '/cax/sourceFile/upload',
    method: 'post',
    data
  });
};
//文件下载
export const downloadSource = (id) => {
  return request({
    url: `/cax/sourceFile/download/${id}`,
    method: 'get',
    responseType: 'blob'
  });
};
//源文件信息导出
export const exportData = (data) => {
  return request({
    url: '/cax/sourceFile/exportData',
    method: 'post',
    data,
    responseType: 'blob'
  });
};
// 源文件批量删除
export const sourceFileDelete = (ids) => {
  return request({
    url: `/cax/sourceFile/${ids}`,
    method: 'delete'
  });
};
